package com.budwk.app.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author ZY.Wang
 * @since 2023/5/13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ServiceException extends RuntimeException {

    private Integer code;

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
